
#include "CoreA.h"
#include "CoreB.h"
int main()
{
    auto factory = std::make_shared<Factory>();
    auto ca = factory->CreateCore("CoreA");
    if (ca != nullptr)
    {
        ca->Run();
    }
    auto cb = factory->CreateCore("CoreB");
    if (cb != nullptr)
    {
        cb->Run();
    }
    return 0;
}
